package org.bigjava.travel.service;

import org.bigjava.travel.bean.Hotel;

import java.util.List;

/**
 * 酒店业务逻辑层<接口>
 */

public interface HotelService {

    public long count()throws Exception;

    public Hotel findById(Integer id)throws Exception;

    public List<Hotel> findList()throws Exception;

    public void save(Hotel hotel)throws Exception;

    public void update(Hotel hotel)throws Exception;

    public void deleteById(Integer id)throws Exception;

    public List<Hotel> findByPage(int currentPage, int pageSize, String query)throws Exception;

    public List<Hotel> findByPage(int currentPage, int pageSize)throws Exception;

    public long state0count()throws Exception;

    public long state1count()throws Exception;

    public long state2count()throws Exception;

    public long count2()throws Exception;
}
